package com.gitee.qdbp.general.common.biz.reusable.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.able.jdbc.ordering.OrderPaging;
import com.gitee.qdbp.able.jdbc.paging.PageList;
import com.gitee.qdbp.general.common.api.reusable.basic.IProcessingRecordBasic;
import com.gitee.qdbp.general.common.api.reusable.model.ProcessingRecordBean;
import com.gitee.qdbp.general.common.api.reusable.model.ProcessingRecordWhere;
import com.gitee.qdbp.general.common.api.reusable.service.IProcessingRecordQueryer;

/**
 * 处理过程备注业务处理类
 *
 * @author zhh
 * @version 170702
 */
@Service
@Transactional(readOnly = true)
public class ProcessingRecordQueryer implements IProcessingRecordQueryer {

    /** 处理过程备注DAO **/
    @Autowired
    private IProcessingRecordBasic processingRecordBasic;

    @Override
    public ProcessingRecordBean find(String id) throws ServiceException {
        return processingRecordBasic.findById(id);
    }

    @Override
    public ProcessingRecordBean find(ProcessingRecordWhere where) throws ServiceException {
        return processingRecordBasic.find(where);
    }

    @Override
    public PageList<ProcessingRecordBean> list(ProcessingRecordWhere where, OrderPaging paging) throws ServiceException {
        return processingRecordBasic.list(where, paging);
    }

}